package com.gupao.gupaoeduvippattern.javaBase.jihe;

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

/**
 * @author Administrator
 * @date 2020-12-09 09:19
 */
public class ListApp {
    public static void main( String[] args ) throws InterruptedException {
        List<String> list = new ArrayList<>();
        for (int i = 1; i <= 30; i++){
            new Thread(() -> {
                list.add(UUID.randomUUID().toString().substring(0, 8));
                System.out.println(list);
            }).start();
        };
    }
}
